<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 数组排序 </title>
</head>
<body>
<h2>Math.min()</h2>
<p>使用 Math.min.apply 来查找数组中的最低值：</p>

<p>最低值是：<span id="demo"></span></p>

<script>
  var points = [40, 100, 1, 5, 25, 10];
  document.getElementById("demo").innerHTML = myArrayMin(points);

  function myArrayMin(arr) {
    return Math.min.apply(null, arr);
  }
</script>

</body>
</html>